using System.Configuration;

namespace AvalonAdmin.Consts
{
    public class ApiUrl
    {
        // 配置文件读取后端地址
        static string? apiUrl = ConfigurationManager.AppSettings["AdminAPI"];

        // 登录
        public static string Login = apiUrl + "api/login/login";
        public static string GetAdminInfo = apiUrl + "api/login/getadmininfo";
        public static string RefreshToken = apiUrl + "api/login/refreshtoken";
        public static string Logout = apiUrl + "api/login/logout";

        // 管理员
        public static string AddAdmin = apiUrl + "api/admin/add";
        public static string DeleteAdmin = apiUrl + "api/admin/delete";
        public static string UpdateAdmin = apiUrl + "api/admin/update";
        public static string GetAdmin = apiUrl + "api/admin/get";
        public static string QueryAdminList = apiUrl + "api/admin/list";
        public static string QueryAdminPages = apiUrl + "api/admin/pages";
        public static string ExportAdminTemplate = apiUrl + "api/admin/exportTemplate";
        public static string ExportAdmin = apiUrl + "api/admin/export";
        public static string ImportAdmin = apiUrl + "api/admin/import";
        public static string CheckImportAdmin = apiUrl + "api/admin/checkimpdata";

        #region 规则
        // 规则组成
        public static string AddRuleConfig = apiUrl + "api/ruleconfig/add";
        public static string DeleteRuleConfig = apiUrl + "api/ruleconfig/delete";
        public static string UpdateRuleConfig = apiUrl + "api/ruleconfig/update";
        public static string GetRuleConfig = apiUrl + "api/ruleconfig/get";
        public static string QueryRuleConfigList = apiUrl + "api/ruleconfig/list";
        public static string QueryRuleConfigPages = apiUrl + "api/ruleconfig/pages";
        public static string GetRuleConfigByVIN = apiUrl + "api/ruleconfig/getruleconfigbyvin";


        public static string AddRuleMapping = apiUrl + "api/rulemapping/add";
        public static string DeleteRuleMapping = apiUrl + "api/rulemapping/delete";
        public static string UpdateRuleMapping = apiUrl + "api/rulemapping/update";
        public static string GetRuleMapping = apiUrl + "api/rulemapping/get";
        public static string QueryRuleMappingList = apiUrl + "api/rulemapping/list";
        public static string QueryRuleMappingPages = apiUrl + "api/rulemapping/pages";
        public static string GetRuleMappingByVIN = apiUrl + "api/rulemapping/getrulemappingbyvin";
        #endregion

        #region 汽车型号 

        // 区域
        public static string AddArea = apiUrl + "api/area/add";
        public static string DeleteArea = apiUrl + "api/area/delete";
        public static string UpdateArea = apiUrl + "api/area/update";
        public static string QueryAreaList = apiUrl + "api/area/list";
        public static string GetArea = apiUrl + "api/area/get";
        public static string QueryAreaPages = apiUrl + "api/area/pages";
        public static string ExportAreaTemplate = apiUrl + "api/area/exportTemplate";
        public static string ExportArea = apiUrl + "api/area/export";
        public static string ImportArea = apiUrl + "api/area/import";
        public static string CheckImportArea = apiUrl + "api/area/checkimpdata";

        //国家
        public static string AddCountry = apiUrl + "api/country/add";
        public static string DeleteCountry = apiUrl + "api/country/delete";
        public static string UpdateCountry = apiUrl + "api/country/update";
        public static string QueryCountryList = apiUrl + "api/country/list";
        public static string GetCountry = apiUrl + "api/country/get";
        public static string QueryCountryPages = apiUrl + "api/country/pages";
        public static string ExportCountryTemplate = apiUrl + "api/country/exportTemplate";
        public static string ExportCountry = apiUrl + "api/country/export";
        public static string ImportCountry = apiUrl + "api/country/import";
        public static string CheckImportCountry = apiUrl + "api/country/checkimpdata";

        //品牌
        public static string AddBrand = apiUrl + "api/brand/add";
        public static string DeleteBrand = apiUrl + "api/brand/delete";
        public static string UpdateBrand = apiUrl + "api/brand/update";
        public static string QueryBrandList = apiUrl + "api/brand/list";
        public static string GetBrand = apiUrl + "api/brand/get";
        public static string QueryBrandPages = apiUrl + "api/brand/pages";
        public static string ExportBrandTemplate = apiUrl + "api/brand/exportTemplate";
        public static string ExportBrand = apiUrl + "api/brand/export";
        public static string ImportBrand = apiUrl + "api/brand/import";
        public static string CheckImportBrand = apiUrl + "api/brand/checkimpdata";

        //车系
        public static string AddVehicleSeries = apiUrl + "api/vehicleseries/add";
        public static string DeleteVehicleSeries = apiUrl + "api/vehicleseries/delete";
        public static string UpdateVehicleSeries = apiUrl + "api/vehicleseries/update";
        public static string QueryVehicleSeriesList = apiUrl + "api/vehicleseries/list";
        public static string GetVehicleSeries = apiUrl + "api/vehicleseries/get";
        public static string QueryVehicleSeriesPages = apiUrl + "api/vehicleseries/pages";
        public static string VehicleSeriesPagesCarPartsList = apiUrl + "api/vehicleseries/carpartslist";
        public static string VehicleSeriesCheckImpData = apiUrl + "api/vehicleseries/checkimpdata";
        public static string ExportVehicleSeriesTemplate = apiUrl + "api/vehicleseries/exportTemplate";
        public static string ExportVehicleSeries = apiUrl + "api/vehicleseries/export";
        public static string ImportVehicleSeries = apiUrl + "api/vehicleseries/import";
        public static string CheckImportVehicleSeries = apiUrl + "api/vehicleseries/checkimpdata";

        //车型
        public static string AddCarType = apiUrl + "api/cartype/add";
        public static string DeleteCarType = apiUrl + "api/cartype/delete";
        public static string UpdateCarType = apiUrl + "api/cartype/update";
        public static string QueryCarTypeList = apiUrl + "api/cartype/list";
        public static string GetCarType = apiUrl + "api/cartype/get";
        public static string QueryCarTypePages = apiUrl + "api/cartype/pages";
        public static string GetCarPartsByCarTypeId = apiUrl + "api/cartype/getcarpartsbycartypeid";
        public static string CarTypeCheckImpData = apiUrl + "api/cartype/checkimpdata";
        public static string ExportCarTypeTemplate = apiUrl + "api/cartype/exportTemplate";
        public static string ExportCarType = apiUrl + "api/cartype/export";
        public static string ImportCarType = apiUrl + "api/cartype/import";
        public static string CheckImportCarType = apiUrl + "api/cartype/checkimpdata";

        //车型版本
        public static string AddCarTypeVersion = apiUrl + "api/cartypeversion/add";
        public static string DeleteCarTypeVersion = apiUrl + "api/cartypeversion/delete";
        public static string UpdateCarTypeVersion = apiUrl + "api/cartypeversion/update";
        public static string QueryCarTypeVersionList = apiUrl + "api/cartypeversion/list";
        public static string GetCarTypeVersion = apiUrl + "api/cartypeversion/get";
        public static string QueryCarTypeVersionPages = apiUrl + "api/cartypeversion/pages";
        public static string ExportCarTypeVersionTemplate = apiUrl + "api/cartypeversion/exportTemplate";
        public static string ExportCarTypeVersion = apiUrl + "api/cartypeversion/export";
        public static string ImportCarTypeVersion = apiUrl + "api/cartypeversion/import";
        public static string CheckImportCarTypeVersion = apiUrl + "api/cartypeversion/checkimpdata";

        #endregion

        #region  配件
        //配件类型
        public static string AddCarPartsType = apiUrl + "api/carpartstype/add";
        public static string DeleteCarPartsType = apiUrl + "api/carpartstype/delete";
        public static string UpdateCarPartsType = apiUrl + "api/carpartstype/update";
        public static string QueryCarPartsTypeList = apiUrl + "api/carpartstype/list";
        public static string GetCarPartsType = apiUrl + "api/carpartstype/get";
        public static string QueryCarPartsTypePages = apiUrl + "api/carpartstype/pages";
        public static string ExportCarPartsTypeTemplate = apiUrl + "api/carpartstype/exportTemplate";
        public static string ExportCarPartsType  = apiUrl + "api/carpartstype/export";
        public static string ImportCarPartsType  = apiUrl + "api/carpartstype/import";
        public static string CheckImportCarPartsType = apiUrl + "api/carpartstype/checkimpdata";

        //车系配件类型
        public static string AddVehicleSeriesCarPartsType = apiUrl + "api/vehicleseriescarpartstype/add";
        public static string DeleteVehicleSeriesCarPartsType = apiUrl + "api/vehicleseriescarpartstype/delete";
        public static string UpdateVehicleSeriesCarPartsType = apiUrl + "api/vehicleseriescarpartstype/update";
        public static string QueryVehicleSeriesCarPartsTypeList = apiUrl + "api/vehicleseriescarpartstype/list";
        public static string GetVehicleSeriesCarPartsType = apiUrl + "api/vehicleseriescarpartstype/get";
        public static string QueryVehicleSeriesCarPartsTypePages = apiUrl + "api/vehicleseriescarpartstype/pages";
        public static string ExportVehicleSeriesCarPartsTypeTemplate = apiUrl + "api/vehicleseriescarpartstype/exportTemplate";
        public static string ExportVehicleSeriesCarPartsType = apiUrl + "api/vehicleseriescarpartstype/export";
        public static string ImportVehicleSeriesCarPartsType = apiUrl + "api/vehicleseriescarpartstype/import";
        public static string CheckImportVehicleSeriesCarPartsType = apiUrl + "api/vehicleseriescarpartstype/checkimpdata";

        //配件
        public static string AddCarParts = apiUrl + "api/carparts/add";
        public static string DeleteCarParts = apiUrl + "api/carparts/delete";
        public static string UpdateCarParts = apiUrl + "api/carparts/update";
        public static string QueryCarPartsList = apiUrl + "api/carparts/list";
        public static string GetCarParts = apiUrl + "api/carparts/get";
        public static string QueryCarPartsPages = apiUrl + "api/carparts/pages";
        public static string ExportCarPartsTemplate = apiUrl + "api/carparts/exportTemplate";
        public static string ExportCarParts = apiUrl + "api/carparts/export";
        public static string ImportCarParts = apiUrl + "api/carparts/import";
        public static string CheckImportCarParts = apiUrl + "api/carparts/checkimpdata";
        #endregion
    }
}
